import request from "@/utils/request.js";

/**
 * 获取等级列表
 * @returns {*}
 */
export const getLevelListApi = (params) => {
    return request({
        url: '/school/level/list',
        method: 'get',
        params
    })
}

/**
 * 新增等级
 */
export const addLevelApi = (data) => {
    return request({
        url: '/school/level/add',
        method: 'post',
        data
    })
}

/**
 * 删除等级
 */
export const deleteLevelApi = (params) => {
    return request({
        url: '/school/level/delete',
        method: 'delete',
        params
    })
}

/**
 * 获取等级详情
 */
export const detailsLevelApi = (params) => {
    return request({
        url: '/school/level/details',
        method: 'get',
        params
    })
}

/**
 * 更新等级
 */
export const updateLevelApi = (data) => {
    return request({
        url: '/school/level/update',
        method: 'put',
        data
    })
}

/**
 * 获取学生列表
 */
export const getStudentListApi = (params) => {
    return request({
        url: '/school/student/all',
        method: 'get',
        params
    })
}


/**
 * 获取没有自己的学生列表
 */
export const getNoMeStudentListApi = (data) => {
    return request({
        url: '/school/student/all/nome',
        method: 'post',
        data
    })
}

/**
 * 新增学术成果
 */
export const addAchievementApi = (data) => {
    return request({
        url: '/school/academicOutput/add',
        method: 'post',
        data
    })
}

/**
 * 获取所有学术成果类型
 */
export const getAllAchievementTypeApi = () => {
    return request({
        url: '/school/level/all',
        method: 'get',
    })
}

/**
 * 获取学术成果列表
 */
export const getAchievementListApi = (params) => {
    return request({
        url: '/school/academicOutput/list',
        method: 'get',
        params
    })
}

/**
 * 删除学术成果
 */
export const deleteAcademicOutputApi = (params) => {
    return request({
        url: '/school/academicOutput/delete',
        method: 'delete',
        params
    })
}

/**
 * 获取学术成果详情
 */
export const detailsAcademicOutputApi = (params) => {
    return request({
        url: '/school/academicOutput/details',
        method: 'get',
        params
    })
}

/**
 * 更新学术成果
 */
export const updateAcademicOutputApi = (data) => {
    return request({
        url: '/school/academicOutput/update',
        method: 'post',
        data
    })
}

/**
 * 上墙学术成果
 */
export const wallAcademicOutputApi = (data) => {
    return request({
        url: '/school/academicOutput/wall',
        method: 'post',
        data
    })
}

/**
 * 下墙学术成果
 */
export const downWallAcademicOutputApi = (data) => {
    return request({
        url: '/school/academicOutput/unWall',
        method: 'post',
        data
    })
}

/**
 * 上墙实战成果
 */
export const wallActualOutPutApi = (data) => {
    return request({
        url: '/school/actualOutPut/wall',
        method: 'post',
        data
    })
}

/**
 * 下墙实战成果
 */
export const downWallActualOutPutApi = (data) => {
    return request({
        url: '/school/actualOutPut/unWall',
        method: 'post',
        data
    })
}


/**
 * 获取审批列表
 */
export const listAuditApi = (params) => {
    return request({
        url: '/school/audit/list',
        method: 'get',
        params
    })
}

/**
 * 获取所有的学院信息
 */
export const getAllFacultiesApi = () => {
    return request({
        url: '/school/faculties/all',
        method: 'get',
    })
}

/**
 * 获取所有未绑定的班级列表
 */
export const getAllUnbindClassApi = (params) => {
    return request({
        url: '/school/class/noBindAll',
        method: 'get',
        params
    })
}


/**
 * 绑定班级
 */
export const bindClassApi = (data) => {
    return request({
        url: '/school/class/bind',
        method: 'post',
        data
    })
}

/**
 * 获取审批详情
 */
export const detailsAuditApi = (params) => {
    return request({
        url: '/school/audit/details',
        method: 'get',
        params
    })
}

/**
 * 审批操作
 */
export const auditRecordApi = (data) => {
    return request({
        url: '/school/audit/audit',
        method: 'put',
        data
    })
}

/**
 * 我的学生列表
 */
export const mineStuListApi = (params) => {
    return request({
        url: '/school/student/mine',
        method: 'get',
        params
    })
}

/**
 * 学生数据导出
 */
export const exportStudentApi = (params) => {
    return request({
        url: '/school/student/export',
        method: 'get',
        params
    })
}

/**
 * 学生发起申请
 */
export const applyStudentApi = (data) => {
    return request({
        url: '/school/audit/apply',
        method: 'post',
        data
    })
}

/**
 * 党员申请
 */
export const applyPartyMemberApi = (data) => {
    return request({
        url: '/school/audit/apply/entry',
        method: 'post',
        data
    })
}

/**
 * 学生删除审批记录
 */
export const deleteAuditApi = (params) => {
    return request({
        url: '/school/audit/delete',
        method: 'delete',
        params
    })
}

/**
 * 学术成果管理
 */
export const getAcademicOutputApi = (params) => {
    return request({
        url: '/school/academicOutput/myList',
        method: 'get',
        params
    })
}

/**
 * 获取我的老师
 */
export const getMyTeacherApi = () => {
    return request({
        url: '/school/teacher/myTeacher',
        method: 'get'
    })
}


/**
 * 学生新增学术成果
 */
export const addByStuAchievementApi = (data) => {
    return request({
        url: '/school/academicOutput/addByStu',
        method: 'post',
        data
    })
}

/**
 * 获取实战成果列表
 */
export const getActualOutPutListApi = (params) => {
    return request({
        url: '/school/actualOutPut/list',
        method: 'get',
        params
    })
}

/**
 * 删除实战成果
 */
export const deleteActualOutPutApi = (params) => {
    return request({
        url: '/school/actualOutPut/delete',
        method: 'delete',
        params
    })
}

/**
 * 新增实战成果
 */
export const addActualOutPutApi = (data) => {
    return request({
        url: '/school/actualOutPut/add',
        method: 'post',
        data
    })
}

/**
 * 更新实战成果
 */
export const updateActualOutPutApi = (data) => {
    return request({
        url: '/school/actualOutPut/update',
        method: 'put',
        data
    })
}

/**
 * 实战成果详情
 */
export const detailsActualOutPutApi = (params) => {
    return request({
        url: '/school/actualOutPut/details',
        method: 'get',
        params
    })
}

/**
 * 学生新增实战成果
 */
export const addByStuActualOutPutApi = (data) => {
    return request({
        url: '/school/actualOutPut/addByStu',
        method: 'post',
        data
    })
}

/**
 * 获取我的实战成果列表
 */
export const getMyActualOutPutListApi = (params) => {
    return request({
        url: '/school/actualOutPut/myList',
        method: 'get',
        params
    })
}

/**
 * 证书类型列表
 */
export const getCertificateTypeListApi = (params) => {
    return request({
        url: '/school/certType/list',
        method: 'get',
        params
    })
}

/**
 * 新增证书类型
 */
export const addCertificateTypeApi = (data) => {
    return request({
        url: '/school/certType/add',
        method: 'post',
        data
    })
}

/**
 * 编辑证书类型
 */
export const updateCertificateTypeApi = (data) => {
    return request({
        url: '/school/certType/update',
        method: 'put',
        data
    })
}

/**
 * 删除证书类型
 */
export const deleteCertificateTypeApi = (params) => {
    return request({
        url: '/school/certType/delete',
        method: 'delete',
        params
    })
}

/**
 * 查询证书详情
 */
export const detailsCertificateTypeApi = (params) => {
    return request({
        url: '/school/certType/details',
        method: 'get',
        params
    })
}

/**
 * 查询所有证书
 */
export const getAllCertificateTypeApi = () => {
    return request({
        url: '/school/certType/all',
        method: 'get'
    })
}

/**
 * 毕业生查询
 */
export const getGraduatedListApi = (params) => {
    return request({
        url: '/school/student/graduated',
        method: 'get',
        params
    })
}

/**
 * 证书列表
 */
export const getCertificateListApi = (params) => {
    return request({
        url: '/school/pacProSkillCert/list',
        method: 'get',
        params
    })
}

/**
 * 新增证书
 */
export const addCertificateApi = (data) => {
    return request({
        url: '/school/pacProSkillCert/add',
        method: 'post',
        data
    })
}

/**
 * 编辑证书
 */
export const updateCertificateApi = (data) => {
    return request({
        url: '/school/pacProSkillCert/update',
        method: 'put',
        data
    })
}

/**
 * 证书详情
 */
export const detailsCertificateApi = (params) => {
    return request({
        url: '/school/pacProSkillCert/details',
        method: 'get',
        params
    })
}

/**
 * 证书上墙
 */
export const wallCertificateApi = (data) => {
    return request({
        url: '/school/pacProSkillCert/wall',
        method: 'put',
        data
    })
}

/**
 * 证书下墙
 */
export const unWallCertificateApi = (data) => {
    return request({
        url: '/school/pacProSkillCert/unWall',
        method: 'put',
        data
    })
}

/**
 * 删除证书
 */
export const deleteCertificateApi = (params) => {
    return request({
        url: '/school/pacProSkillCert/delete',
        method: 'delete',
        params
    })
}

/**
 * 学生-获取我的证书列表
 */
export const getMyCertificateListApi = (params) => {
    return request({
        url: '/school/pacProSkillCert/myList',
        method: 'get',
        params
    })
}

/**
 * 学生-新增电子证书
 */
export const addMyCertificateApi = (data) => {
    return request({
        url: '/school/pacProSkillCert/addMy',
        method: 'post',
        data
    })
}

/**
 * 学生-编辑证书
 */
export const updateMyCertificateApi = (data) => {
    return request({
        url: '/school/pacProSkillCert/updateMy',
        method: 'put',
        data
    })
}

/**
 * 获取荣誉墙前三
 */
 export const getHonorWallApi = (params) => {
    return request({
        url: '/school/honorWall/getTopThree',
        method: 'get',
        params
    })
}

/**
 * 获取有证明材料的数据
 */
export const getHonorWall2Api = (params) => {
    return request({
        url: '/school/honorWall/list2',
        method: 'get',
        params
    })
}

/**
 * 获取荣誉列表
 */
export const getHonorListApi = (params) => {
    return request({
        url: '/school/honorWall/list',
        method: 'get',
        params
    })
}

/**
 * 获取荣誉列表
 */
export const getStuHonorListApi = (params) => {
    return request({
        url: '/school/honorWall/stuHonorList',
        method: 'get',
        params
    })
}

/**
 * 获取学生列表
 */
 export const getStuListApi = (params) => {
    return request({
        url: '/school/student/list',
        method: 'get',
        params
    })
}

/**
 * 通过学生Id获取详情
 */
 export const getStuDetailsApi = (params) => {
    return request({
        url: '/school/student/details',
        method: 'get',
        params
    })
}


/**
 * 在职荣誉列表
 */
export const getWorkHonorListApi = (params) => {
    return request({
        url: '/school/jobHonors/list',
        method: 'get',
        params
    })
}

/**
 * 新增在职荣誉
 */
export const addWorkHonorApi = (data) => {
    return request({
        url: '/school/jobHonors/add',
        method: 'post',
        data
    })
}

/**
 * 编辑在职荣誉
 */
export const updateWorkHonorApi = (data) => {
    return request({
        url: '/school/jobHonors/update',
        method: 'put',
        data
    })
}

/**
 * 删除在职荣誉
 */
export const deleteWorkHonorApi = (params) => {
    return request({
        url: '/school/jobHonors/delete',
        method: 'delete',
        params
    })
}

/**
 * 在职荣誉详情
 */
export const detailsWorkHonorApi = (params) => {
    return request({
        url: '/school/jobHonors/details',
        method: 'get',
        params
    })
}

/**
 * 新增实习经历
 */
export const addInternshipApi = (data) => {
    return request({
        url: '/school/internship/add',
        method: 'post',
        data
    })
}

/**
 * 编辑实习经历
 */
export const updateInternshipApi = (data) => {
    return request({
        url: '/school/internship/update',
        method: 'put',
        data
    })
}

/**
 * 实习经历列表
 */
export const getInternshipListApi = (params) => {
    return request({
        url: '/school/internship/list',
        method: 'get',
        params
    })
}

/**
 * 实习详情
 */
export const detailsInternshipApi = (params) => {
    return request({
        url: '/school/internship/details',
        method: 'get',
        params
    })
}

/**
 * 删除实习
 */
export const deleteInternshipApi = (params) => {
    return request({
        url: '/school/internship/delete',
        method: 'delete',
        params
    })
}

/**
 * 轮播列表
 */
export const getBannerListApi = (params) => {
    return request({
        url: '/school/carouselBanner/list',
        method: 'get',
        params
    })
}

/**
 * 新增轮播
 */
export const addBannerApi = (data) => {
    return request({
        url: '/school/carouselBanner/add',
        method: 'post',
        data
    })
}

/**
 * 编辑轮播
 */
export const updateBannerApi = (data) => {
    return request({
        url: '/school/carouselBanner/update',
        method: 'put',
        data
    })
}

/**
 * 轮播详情
 */
export const detailsBannerApi = (params) => {
    return request({
        url: '/school/carouselBanner/details',
        method: 'get',
        params
    })
}
/**
 * 删除轮播
 */
export const deleteBannerApi = (params) => {
    return request({
        url: '/school/carouselBanner/delete',
        method: 'delete',
        params
    })
}

/**
 * 获取所有的轮播图
 */
export const getAllBannerApi = (params) => {
    return request({
        url: '/school/carouselBanner/all',
        method: 'get',
        params
    })
}

/**
 * 查看档案列表
 */
export const getArchivesListApi = (params) => {
    return request({
        url: '/school/leaningFileData/list',
        method: 'get',
        params
    })
}

/**
 * 获取学生城市数据
 */
export const getStuCityApi = () => {
    return request({
        url: '/school/student/city',
        method: 'get'
    })
}

/**
 * 角色选择列表
 */
export function roleSelectApi() {
    return request({
        url: '/system/role/authUser/allocatedList',
        method: 'get'
    })
}

/**
 * 获取老师的审批列表
 */
export const getTeacherApprovalListApi = (params) => {
    return request({
        url: '/school/audit/list/teacher',
        method: 'get',
        params
    })
}
/**
 * 在校荣誉
 */
export const getSchoolHonorApi = (params) => {
    return request({
        url: '/school/audit/getPassed',
        method: 'get',
        params
    })
}

/**
 * 中队长 获取审核记录
 */
export const getAuditRecordByCaptainApi = (params) => {
    return request({
        url: '/school/audit/list/captain',
        method: 'get',
        params
    })
}

/**
 * 中队长 获取审核记录
 */
export const getTeacherListApi = (params) => {
    return request({
        url: '/school/teacher/stuAllTeacher',
        method: 'get',
        params
    })
}

/**
 * 参与实战成果
 */
export const joinAchievementApi = (data) => {
    return request({
        url: '/school/actualOutPutParticipation/join',
        method: 'post',
        data
    })
}

/**
 * 查询参与实战成果人员
 */
export const getJoinAchievementApi = (params) => {
    return request({
        url: '/school/actualOutPutParticipation/list',
        method: 'get',
        params
    })
}

/**
 * 参赛人员详情
 */
export const getJoinAchievementDetailsApi = (params) => {
    return request({
        url: '/school/actualOutPutParticipation/details',
        method: 'get',
        params
    })
}

/**
 * 删除参战人员
 */
export const deleteJoinAchievementApi = (params) => {
    return request({
        url: '/school/actualOutPutParticipation/delete',
        method: 'delete',
        params
    })
}

/**
 * 获取荣誉最新通过的5条数据
 */
export const getHonorTop5Api = (params) => {
    return request({
        url: '/school/audit/top5',
        method: 'get',
        params
    })
}

/**
 * 统计数据
 */
export const getStatisticsApi = () => {
    return request({
        url: '/school/audit/statistics',
        method: 'get',
    })
}

/**
 * 学术成果参与列表
 */
export const getAcademicAchievementApi = (params) => {
    return request({
        url: '/school/academicOutPutParticipation/list',
        method: 'get',
        params
    })
}

/**
 * 参与学术成果
 */
export const joinAcademicAchievementApi = (data) => {
    return request({
        url: '/school/academicOutPutParticipation/join',
        method: 'post',
        data
    })
}

/**
 * 学术成果-参赛人员详情
 */
export const getAcademicAchievementDetailsApi = (params) => {
    return request({
        url: '/school/academicOutPutParticipation/details',
        method: 'get',
        params
    })
}

/**
 * 改变学术是否优秀
 */
export const changeAcademicAchievementApi = (data) => {
    return request({
        url: '/school/student/setExcellent',
        method: 'put',
        data
    })
}

/**
 * 获取优秀学生列表
 */
export const getExcellentStudentApi = (params) => {
    return request({
        url: '/school/student/getExcellentList',
        method: 'get',
        params
    })
}

/**
 * 获取专利列表
 */
export const getSoftPatentListApi = (params) => {
    return request({
        url: '/school/softPatent/list',
        method: 'get',
        params
    })
}

/**
 * 专利详情
 */
export const detailsSoftPatentApi = (params) => {
    return request({
        url: '/school/softPatent/details',
        method: 'get',
        params
    })
}

/**
 * 删除专利
 */
export const deleteSoftPatentApi = (params) => {
    return request({
        url: '/school/softPatent/delete',
        method: 'delete',
        params
    })
}


/**
 * 新增专利
 */
export const addSoftPatentApi = (data) => {
    return request({
        url: '/school/softPatent/add',
        method: 'post',
        data
    })
}


/**
 * 更新专利
 */
export const updateSoftPatentApi = (data) => {
    return request({
        url: '/school/softPatent/update',
        method: 'put',
        data
    })
}


/**
 * 上墙专利
 */
export const wallSoftPatentApi = (data) => {
    return request({
        url: '/school/softPatent/wall',
        method: 'post',
        data
    })
}


/**
 * 下墙专利
 */
export const downWallSoftPatentApi = (data) => {
    return request({
        url: '/school/softPatent/unWall',
        method: 'post',
        data
    })
}

/**
 * 新增 我的专利
 */
export const addMySoftPatentApi = (data) => {
    return request({
        url: '/school/softPatent/addByStu',
        method: 'post',
        data
    })
}

/**
 * 更新 我的专利
 */
export const updateMySoftPatentApi = (data) => {
    return request({
        url: '/school/softPatent/updateByStu',
        method: 'put',
        data
    })
}

/**
 * 专利--参赛人员详情
 */
export const getJoinSoftPatentDetailsApi = (params) => {
    return request({
        url: '/school/softPatentParticipation/details',
        method: 'get',
        params
    })
}

/**
 * 参与专利申请
 */
export const joinSoftPatentApi = (data) => {
    return request({
        url: '/school/softPatentParticipation/join',
        method: 'post',
        data
    })
}

/**
 * 查询参与申请人员
 */
export const getJoinSoftPatentApi = (params) => {
    return request({
        url: '/school/softPatentParticipation/list',
        method: 'get',
        params
    })
}

/**
 * 删除参与人员
 */
export const deleteJoinSoftPatentApi = (params) => {
    return request({
        url: '/school/softPatentParticipation/delete',
        method: 'delete',
        params
    })
}


/**
 * 获取项目列表
 */
export const getScientificProjectsListApi = (params) => {
    return request({
        url: '/school/scientificProjects/list',
        method: 'get',
        params
    })
}

/**
 * 获取我的项目列表
 */
export const getMyScientificProjectsListApi = (params) => {
    return request({
        url: '/school/scientificProjects/myList',
        method: 'get',
        params
    })
}

/**
 * 专利详情
 */
export const detailsScientificProjectsApi = (params) => {
    return request({
        url: '/school/scientificProjects/details',
        method: 'get',
        params
    })
}

/**
 * 删除专利
 */
export const deleteScientificProjectsApi = (params) => {
    return request({
        url: '/school/scientificProjects/delete',
        method: 'delete',
        params
    })
}


/**
 * 新增专利
 */
export const addScientificProjectsApi = (data) => {
    return request({
        url: '/school/scientificProjects/add',
        method: 'post',
        data
    })
}


/**
 * 更新专利
 */
export const updateScientificProjectsApi = (data) => {
    return request({
        url: '/school/scientificProjects/update',
        method: 'put',
        data
    })
}


/**
 * 上墙专利
 */
export const wallScientificProjectsApi = (data) => {
    return request({
        url: '/school/scientificProjects/wall',
        method: 'post',
        data
    })
}


/**
 * 下墙专利
 */
export const downWallScientificProjectsApi = (data) => {
    return request({
        url: '/school/scientificProjects/unWall',
        method: 'post',
        data
    })
}



/**
 * 参与专利申请
 */
export const joinScientificProjectsParticipationApi = (data) => {
    return request({
        url: '/school/scientificProjectsParticipation/join',
        method: 'post',
        data
    })
}

/**
 * 查询参与申请人员
 */
export const getScientificProjectsParticipationApi = (params) => {
    return request({
        url: '/school/scientificProjectsParticipation/list',
        method: 'get',
        params
    })
}

/**
 * 删除参与人员
 */
export const deleteScientificProjectsParticipationApi = (params) => {
    return request({
        url: '/school/scientificProjectsParticipation/delete',
        method: 'delete',
        params
    })
}

/**
 * 项目--参赛人员详情
 */
export const getJoinScientificProjectsParticipationApi = (params) => {
    return request({
        url: '/school/scientificProjectsParticipation/details',
        method: 'get',
        params
    })
}

/**
 * 查询论文期刊
 */
export const getPaperJournalApi = (params) => {
    return request({
        url: '/school/journalsType/list',
        method: 'get',
        params
    })
}

/**
 * 新增论文期刊
 */
export const addPaperJournalApi = (data) => {
    return request({
        url: '/school/journalsType/add',
        method: 'post',
        data
    })
}


/**
 * 论文期刊详情
 */
export const detailsPaperJournalApi = (params) => {
    return request({
        url: '/school/journalsType/details',
        method: 'get',
        params
    })
}

/**
 * 更新论文期刊
 */
export const updatePaperJournalApi = (data) => {
    return request({
        url: '/school/journalsType/update',
        method: 'put',
        data
    })
}


/**
 * 删除文论期刊
 */
export const deletePaperJournalApi = (params) => {
    return request({
        url: '/school/journalsType/delete',
        method: 'delete',
        params
    })
}

/**
 * 查询全部论文期刊
 */
export const getAllPaperJournalApi = (params) => {
    return request({
        url: '/school/journalsType/all',
        method: 'get',
        params
    })
}


/**
 * 论文申请详情
 */
export const detailsPaperApplyApi = (params) => {
    return request({
        url: '/school/journalsOutput/details',
        method: 'get',
        params
    })
}

/**
 * 新增论文申请
 */
export const addPaperApplyApi = (data) => {
    return request({
        url: '/school/journalsOutput/add',
        method: 'post',
        data
    })
}


/**
 * 更新论文申请
 */
export const updatePaperApplyApi = (data) => {
    return request({
        url: '/school/journalsOutput/update',
        method: 'post',
        data
    })
}

/**
 * 获取论文申请列表
 */
export const getPaperApplyListApi = (params) => {
    return request({
        url: '/school/journalsOutput/list',
        method: 'get',
        params
    })
}

/**
 * 删除论文申请
 */
export const deletePaperApplyApi = (params) => {
    return request({
        url: '/school/journalsOutput/delete',
        method: 'delete',
        params
    })
}

/**
 * 论文上墙
 */
export const wallPaperApplyApi = (data) => {
    return request({
        url: '/school/journalsOutput/wall',
        method: 'post',
        data
    })
}

/**
 * 论文下墙
 */
export const downWallPaperApplyApi = (data) => {
    return request({
        url: '/school/journalsOutput/unWall',
        method: 'post',
        data
    })
}

/**
 * 参与论文申请
 */
export const joinPaperApplyParticipationApi = (data) => {
    return request({
        url: '/school/journalsOutputParticipation/join',
        method: 'post',
        data
    })
}

/**
 * 论文参与详情
 */
export const getJoinPaperApplyParticipationApi = (params) => {
    return request({
        url: '/school/journalsOutputParticipation/details',
        method: 'get',
        params
    })
}

/**
 * 论文申请参与列表
 */
export const getPaperApplyParticipationListApi = (params) => {
    return request({
        url: '/school/journalsOutputParticipation/list',
        method: 'get',
        params
    })
}

/**
 * 删除 论文申请参与
 */
export const deletePaperApplyParticipationApi = (params) => {
    return request({
        url: '/school/journalsOutputParticipation/delete',
        method: 'delete',
        params
    })
}

/**
 * 获取我的专利列表
 */
export const getMySoftPatentListApi = (params) => {
    return request({
        url: '/school/softPatent/myList',
        method: 'get',
        params
    })
}

/**
 * 新增我的大创科研项目
 */
export const addMyScientificProjectsApi = (data) => {
    return request({
        url: '/school/scientificProjects/addByStu',
        method: 'post',
        data
    })
}

/**
 * 更新我的大创科研项目
 */
export const updateMyScientificProjectsApi = (data) => {
    return request({
        url: '/school/scientificProjects/update',
        method: 'put',
        data
    })
}

/**
 * 我的论文申请列表
 */
export const getMyPaperApplyApi = (params) => {
    return request({
        url: '/school/journalsOutput/myList',
        method: 'get',
        params
    })
}

/**
 * 我的论文申请
 */
export const getMyPaperApplyListApi = (params) => {
    return request({
        url: '/school/journalsOutput/myList',
        method: 'get',
        params
    })
}

/**
 * 新增我的论文申请
 */
export const addMyPaperApplyApi = (data) => {
    return request({
        url: '/school/journalsOutput/addByStu',
        method: 'post',
        data
    })
}

/**
 * 编辑我的论文申请
 */
export const updateMyPaperApplyApi = (data) => {
    return request({
        url: '/school/journalsOutput/update',
        method: 'post',
        data
    })
}

/**
 * 子类型列表
 */
export const getChildTypeListApi = (params) => {
    return request({
        url: '/school/level2/list',
        method: 'get',
        params
    })
}

/**
 * 新增子类型
 */
export const addChildTypeApi = (data) => {
    return request({
        url: '/school/level2/add',
        method: 'post',
        data
    })
}

/**
 * 编辑子类型
 */
export const updateChildTypeApi = (data) => {
    return request({
        url: '/school/level2/update',
        method: 'post',
        data
    })
}

/**
 * 删除子类型
 */
export const deleteChildTypeApi = (params) => {
    return request({
        url: '/school/level2/delete',
        method: 'delete',
        params
    })
}

/**
 * 导出成果--学科竞赛
 */
export const exportAchievements1Api = (data) => {
    return request({
        url: '/school/academicOutput/export-word',
        method: 'get',
        data
    })
}

/**
 * 行政区域代码数量列表
 */
export const getRegionCodeCountListApi = (params) => {
    return request({
        url: '/school/activationStatus/list',
        method: 'get',
        params
    })
}

/**
 * 获取学生的6211成绩
 */
export const getStudent6211ScoreApi = (params) => {
    return request({
        url: '/school/leaningFileData/myList',
        method: 'get',
        params
    })
}

/**
 * 学院列表
 */
export const getCollegeListApi = (params) => {
    return request({
        url: '/school/College/list',
        method: 'get',
        params
    })
}

/**
 * 所有学院列表
 */
export const getCollegeAllListApi = (params) => {
    return request({
        url: '/school/College/all',
        method: 'get',
        params
    })
}


/**
 * 编辑学院
 */
export const updateCollegeListApi = (data) => {
    return request({
        url: '/school/College/update',
        method: 'post',
        data
    })
}

/**
 * 新增学院
 */
export const addCollegeApi = (data) => {
    return request({
        url: '/school/College/add',
        method: 'post',
        data
    })
}

/**
 * 删除学院
 */
export const deleteCollegeApi = (params) => {
    return request({
        url: '/school/College/delete',
        method: 'delete',
        params
    })
}

/**
 * 查看详情
 */
export const getCollegeDetailsApi = (params) => {
    return request({
        url: '/school/College/details',
        method: 'get',
        params
    })
}


/**
 * 学院列表
 */
export const getFacultiesListApi = (params) => {
    return request({
        url: '/school/faculties/list',
        method: 'get',
        params
    })
}


/**
 * 编辑学院
 */
export const updateFacultiesListApi = (data) => {
    return request({
        url: '/school/faculties/update',
        method: 'post',
        data
    })
}

/**
 * 新增学院
 */
export const addFacultiesApi = (data) => {
    return request({
        url: '/school/faculties/add',
        method: 'post',
        data
    })
}

/**
 * 删除学院
 */
export const deleteFacultiesApi = (params) => {
    return request({
        url: '/school/faculties/delete',
        method: 'delete',
        params
    })
}

/**
 * 查看详情
 */
export const getFacultiesDetailsApi = (params) => {
    return request({
        url: '/school/faculties/details',
        method: 'get',
        params
    })
}


/**
 * 班级列表
 */
export const getClassListApi = (params) => {
    return request({
        url: '/school/class/list',
        method: 'get',
        params
    })
}

/**
 * 更新班级
 */
export const updateClassListApi = (data) => {
    return request({
        url: '/school/class/update',
        method: 'post',
        data
    })
}

/**
 * 新增班级
 */
export const addClassApi = (data) => {
    return request({
        url: '/school/class/add',
        method: 'post',
        data
    })
}

/**
 * 查看班级详情
 */
export const getClassDetailsApi = (params) => {
    return request({
        url: '/school/class/details',
        method: 'get',
        params
    })
}

/**
 * 删除班级
 */
export const deleteClassApi = (params) => {
    return request({
        url: '/school/class/delete',
        method: 'delete',
        params
    })
}

/**
 * 所有的班级
 */
export const getAllClassListApi = (params) => {
    return request({
        url: '/school/class/all1',
        method: 'get',
        params
    })
}
